package com.itheima.jdbc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @author CC小天才
 * @website www.flyskill.cn
 * @date 2021/10/13 22:09
 **/
@Text
public class mainTest {

    ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    JdbcTemplate jdbcTemplate= (JdbcTemplate) applicationContext.getBean("jdbcTemplate");
       JdbcTemplate.execute("create table account("+"id int primary key auto_increment,"+"username varchar(50),"+"balance double)");
        System.out.println("账户表account 创建成功！");

}
